using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IServices;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AppCore.Controllers
{
    /// <summary>
    /// 示例api
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class SysSampleController : ControllerBase
    {

        private ISysSampleServices _services;
        
        public SysSampleController(ISysSampleServices services)
        {
            _services = services;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ActionResult<IEnumerable<string>> GetAction()
        {
            Console.WriteLine("111");
            return new string[]{_services.Sum(1,1).ToString()};
        }
    }
}